package com.github.codemperor.core.logger.compute.streaming;

import java.util.function.Function;

public class TestFunction {
    public static int test(int i, Function<Integer, Integer> function) {
        return function.apply(i);
    }

    public static void main(String[] args) {
        int i = 2;
        int result = TestFunction.test(i, res -> {
            System.out.println(res);
            return i + res;
        });
        System.out.println(result);
    }
}
